import json

data = [{"name": "老王", "age": 30}, {"name": "老李", "age": 23}, {"name": "小刘", "age": 18}]

json_data = json.dumps(data, ensure_ascii=False)
print(json_data)

s = '[{"name": "老王", "age": 30}, {"name": "老李", "age": 23}, {"name": "小刘", "age": 18}]'
list_data = json.loads(s)
print(type(list_data))
print(list_data)
